import { Component, Vue } from 'vue-property-decorator';
import * as commonService from '../common-service';

@Component({
  components: {
    
  }
})
export default class Desktop extends Vue {
  date: any = '';
  /** 背景图片地址 */
  bgImgSrc: string = "";
  testList: string = '';

  async getListData() {
    // let myDate = new Date;
    // let year = myDate.getFullYear() + '年';
    // let moon = (myDate.getMonth() + 1) > 9 ? (myDate.getMonth() + 1) : ('0' + (myDate.getMonth() + 1)) + '月';
    // let day = myDate.getDate() + '日';
    // this.date = year + moon + day;

    this.testList = await commonService.getList(null).then((data: any) => {
      console.log(data);
    });
  }
}